﻿@model IEnumerable<Modelo.Dominio.Quarto>

@section featured {
<section class="featured">
    <div class="content-wrapper">
        <hgroup class="title">
            <h1>@ViewBag.Title.</h1>
            <h2>@ViewBag.Message</h2>
        </hgroup>
    </div>
</section>
}

<table>
    <tr>
        <th>@Html.DisplayNameFor(model => model.Numero)  do Quarto</th>
        <th>@Html.DisplayNameFor(model => model.CategoriaDeQuarto)</th>
        <th></th>
    </tr>  

@foreach (var item in Model) {
    <tr>
        <td>@Html.DisplayFor(modelItem => item.Numero)</td>
        <td>@Html.DisplayFor(modelItem => item.CategoriaDeQuarto.Nome)</td>
        <td>
            @Html.ActionLink("Realizar check-out", "CheckOut", new { id = item.Id }) 
        </td>
    </tr>    
}
</table>


